package startupweekend201311.recipe4u.fragment;

import startupweekend201311.recipe4u.R;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class MyPageFragment extends Fragment {

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		return inflater.inflate(R.layout.flagment_mypage, container, false);
	}

	@Override
	public void onResume() {
		super.onResume();
		String dummyName = "recipe4u_user";
		String dummyMail = "recipe4u_user@recipe4u.co";
		String dummyCredit = "xxxx-xxxx-xxxx-xx11";
		String dummyGender = "女性";
		String dummyAge = "25歳";
		
		TextView name = (TextView)getActivity().findViewById(R.id.txt_username);
		TextView mail = (TextView)getActivity().findViewById(R.id.txt_usermail);
		TextView credit = (TextView)getActivity().findViewById(R.id.txt_usercredit);
		TextView gender = (TextView)getActivity().findViewById(R.id.txt_usergender);
		TextView age = (TextView)getActivity().findViewById(R.id.txt_userage);
		
		name.setText(dummyName);
		mail.setText(dummyMail);
		credit.setText(dummyCredit);
		gender.setText(dummyGender);
		age.setText(dummyAge);
	}
}
